package com.rocky.project.model.admin;

import java.util.Set;

import com.rocky.project.model.base.BaseEntity;

/**
 * @hibernate.class   table = "t_role"  dynamic-insert = "true" dynamic-update = "true"
 */
public class Role extends BaseEntity {

	private static final long serialVersionUID = 0L;
	private String rolename; //角色名称
	private String rolecode;//角色编码
	private String status;//是否启用  active deactive
	
	private Set resourceRSet;
	/**
	 * @hibernate.set lazy = "true" readonly = "true" cascade = "none" inverse = "true"
	 * @hibernate.collection-key column = "c_role_id"
	 * @hibernate.collection-one-to-many class ="com.rocky.project.model.admin.RoleResourceR"
	 */
	public Set getResourceRSet() {
		return resourceRSet;
	}
	public void setResourceRSet(Set resourceRSet) {
		this.resourceRSet = resourceRSet;
	}
	/**
	 * @hibernate.property column = "c_rolecode" type = "string" 
	 */		
	public String getRolecode() {
		return rolecode;
	}
	public void setRolecode(String rolecode) {
		this.rolecode = rolecode;
	}
	/**
	 * @hibernate.property column = "c_rolename" type = "string" 
	 */		
	public String getRolename() {
		return rolename;
	}
	public void setRolename(String rolename) {
		this.rolename = rolename;
	}
	/**
	 *  @hibernate.property column="c_status"  type="string"
	 */	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}
